package com.ruoyi.sys.vehile.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 报警记录（进出口）对象 tb_the_alarm_record
 *
 * @author ruoyi
 * @date 2022-05-24
 */
public class TbTheAlarmRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long trId;

    /** 事件编号 */
    @Excel(name = "事件编号")
    private String trEvent;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String trName;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String trEquipment;

    /** 设备类型（0：出入口 1：其他） */
    @Excel(name = "设备类型", readConverterExp = "0=：出入口,1=：其他")
    private Long trType;

    /** 警告类型（0：车辆告警1：其他） */
    @Excel(name = "警告类型", readConverterExp = "0=：车辆告警1：其他")
    private Long trWarning;

    /** 警告时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "警告时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date trDate;

    /** 警告级别（0：普通报警1：危险报警） */
    @Excel(name = "警告级别", readConverterExp = "0=：普通报警1：危险报警")
    private Long trLevel;

    /** 图片 */
    @Excel(name = "图片")
    private String trPicture;

    /** 处理状态（0：待处理1:已处理） */
    @Excel(name = "处理状态", readConverterExp = "0=：待处理1:已处理")
    private Long trState;

    public void setTrId(Long trId)
    {
        this.trId = trId;
    }

    public Long getTrId()
    {
        return trId;
    }
    public void setTrEvent(String trEvent)
    {
        this.trEvent = trEvent;
    }

    public String getTrEvent()
    {
        return trEvent;
    }
    public void setTrName(String trName)
    {
        this.trName = trName;
    }

    public String getTrName()
    {
        return trName;
    }
    public void setTrEquipment(String trEquipment)
    {
        this.trEquipment = trEquipment;
    }

    public String getTrEquipment()
    {
        return trEquipment;
    }
    public void setTrType(Long trType)
    {
        this.trType = trType;
    }

    public Long getTrType()
    {
        return trType;
    }
    public void setTrWarning(Long trWarning)
    {
        this.trWarning = trWarning;
    }

    public Long getTrWarning()
    {
        return trWarning;
    }
    public void setTrDate(Date trDate)
    {
        this.trDate = trDate;
    }

    public Date getTrDate()
    {
        return trDate;
    }
    public void setTrLevel(Long trLevel)
    {
        this.trLevel = trLevel;
    }

    public Long getTrLevel()
    {
        return trLevel;
    }
    public void setTrPicture(String trPicture)
    {
        this.trPicture = trPicture;
    }

    public String getTrPicture()
    {
        return trPicture;
    }
    public void setTrState(Long trState)
    {
        this.trState = trState;
    }

    public Long getTrState()
    {
        return trState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("trId", getTrId())
            .append("trEvent", getTrEvent())
            .append("trName", getTrName())
            .append("trEquipment", getTrEquipment())
            .append("trType", getTrType())
            .append("trWarning", getTrWarning())
            .append("trDate", getTrDate())
            .append("trLevel", getTrLevel())
            .append("trPicture", getTrPicture())
            .append("trState", getTrState())
            .toString();
    }
}
